<?php
//include the functions.php
require "../include/functions.php";

check_session();

?>

<html>
<head>
<title>Online Computer Stores - Shopping Home</title>

<link rel="stylesheet" href="../include/styles.css" type="text/css">

</head>
<body>
<div align="center">
	<div id="topmenu"> <!-- logo + login/register menu -->
		<ul>
		<?php top_menu(); ?>
		</ul>
    </div>
	<div id="header" align="right">
		<form name="form1" method="post" action="#">
			<tr>
				<td height="35" width="78"><a>Search Products</a></td>
				<td height="35" width="3">:</td>
				<td height="35" width="294"><input name="mysearch" type="text" id="mysearch">&nbsp;&nbsp;&nbsp;</td>
			</tr>
		</form>
    <div id="menubar"> <!-- Menu buttons -->
  		<ul>
			<li><a href="../index.php" title="Home"><span>Home</span></a></li>
			<li><a href="#" title="Database Administration"><span>Database Maintenance</span></a></li>
			<li><a href="#" title="Stock Control"><span>Stock Levels</span></a></li>
			<li><a href="#" title="Ordering"><span>Ordering</span></a></li>
	    </ul>
	</div>
</div>


<div id="page">
	<?php
	print('

		<h1>Database Administration</h1> 
		<a>Admin stuff goes here</a><br><br>
		
		<a>Details have been retrieved from database</a><br>
		<a>Username: '.$_SESSION['name'].'</a><br> 
		<a>Password: xxxxxxxx</a><br>  
		<a>User Level: '.$_SESSION["valid_user"].'</a><br>
		<a>Session Time: '.$_SESSION['valid_time'].'</a><br>
		<a>Logged in as: '.$_SESSION['name'].'</a><br>
		
		'); // Retrieves and displayers the data from column "rights" you could use this to retreive cart or profile info
	?>
<br><br><br>
<table border="1">
<tr>
<th>Product ID</th>
<th>Product Description</th>
<th>Prouct Quantity</th>
</tr>
<tr>
<td>111a</td>
<td><input style="text-align:center;" size="30" name="pd1" type="text" id="pd1"></td>
<td><input style="text-align:center;" size="30" name="pq1" type="text" id="pq1" value="231"></td>
</tr>
<tr>
<td>222b</td>
<td><input style="text-align:center;" size="30" name="pd2" type="text" id="pd2"></td>
<td><input style="text-align:center;" size="30" name="pq2" type="text" id="pq2" value="241"></td>
</tr>
<tr>
<td>333c</td>
<td><input style="text-align:center;" size="30" name="pd3" type="text" id="pd3"></td>
<td><input style="text-align:center;" size="30" name="pq3" type="text" id="pq3" value="123"></td>
</tr>
</table>


</div> 

</div> <!-- end of page DIV -->


</div>

</body>
<html>
	




